<include file="Public/frame" />
<script type="text/javascript" src="__PUBLIC__/artDialog/jquery.artDialog.source.js?skin=default"></script>
<script src="__PUBLIC__/artDialog/plugins/iframeTools.source.js"></script>
<style type="text/css">
.place{
   font-size: 16px;
    font-weight: bold;
    border-left: 2px solid #0084FF;

}
table{
            border:1px solid #e9e9e9;
        }
        td{
            text-align: center;
        }


</style>
<!--/左边栏-->
<!--主要内容区-->
<div class="content-wrap">
    <div class="hd cf place">&nbsp;&nbsp;&nbsp;评论管理</div>
    <!-- 选项卡导航 -->
    <div class="tab-bd">
        <table width="100%" class="table-list">
            <thead>
                <tr>
                    <th>编号</th>
                    <th>文章标题</th>
                    <th>评论时间</th>
                    <th>是否审核</th>
                    <th>操作</th>
                </tr>
            </thead>
            <tbody>
                <foreach name="comments" item='c'>
                    <tr>
                        
                        <td>{$c.id}</td>
                        <td><a href="{:getContentUrl($c['postid'],$c['cid'],$c['ename'])}" target="_blank">{$c.title|str2sub=26,'...'}</a></td>
                        <td>{$c.posttime|date='Y-m-d H:i:s',###}</td>
                        <td>{$c['status']?'未通过':'通过'}</td>
                        <td><a onclick="art.dialog.open('{:U('User/Comment/look',array('id' => $c['id']), '')}',{title: '查看评论内容'});">评论内容</a>  <a href="{:U('User/Comment/del',array('id'=>$c['id']))}">删除</a></td>
                    </tr>

                </foreach>
                <tr>
                    <td colspan="5" class="page">
                        {$page}
                    </td>
                </tr>
            </tbody>

        </table>
    </div>
    <div class="a5"></div>
</div>
<!--主要内容区-->


<!-- /主体 -->
<!-- 底部 -->
<include file="Public/foot" />